package com.gjm.order.controller;

import com.gjm.order.dao.objectdata.OrderInfo;
import com.gjm.order.service.OrderService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("order")
@RestController
public class OrderController {

    @Resource(name = "orderServiceImpl")
    private OrderService orderService;

    /**
     * 获取订单信息
     * @param orderId
     * @return
     */
    @RequestMapping("getOrderInfoById")
    public OrderInfo getOrderInfoById(Integer orderId) {
        return orderService.getOrderInfoById(orderId);
    }
}
